package com.yztc.orangeentertainment.ui.main.subscribefragment.staritem;

import android.content.Context;

import com.yztc.orangeentertainment.base.IModle;
import com.yztc.orangeentertainment.base.IPresenter;
import com.yztc.orangeentertainment.base.IView;
import com.yztc.orangeentertainment.bean.staritembean.StarInfoStarBean;

import java.util.Map;

/**
 * Created by My on 2016/10/7.
 */
public class StarItemContract {
    public interface View extends IView{
        //发送到adapter
//        public void sendToAdapter(StarListAdapter adapter);
        public void onLoadStarItemSuccess(StarInfoStarBean starBean);
        //加载数据失败
        public void onLoadStarItemFail(String msg);
    }
    public interface Modle extends IModle{
        //得到list
        public void getStarItemAll(String type, Map<String, String> params, OnLoadStarItemListener loadStarItemListener, Context context);
        //获得数据库
//        public void getStarItemFromDb(Subscriber<List<ListBean>> subscriber);
    }
    public interface Presenter extends IPresenter {
        //从网络获取数据
        public void getStarItemFromNet(Map<String, String> params, Context context);
        public void  getStarItemFromDb();
    }
}
